const jwt  = require('jsonwebtoken');
const secret = 'Etekcity@123';
const expiresIn = {
    expiresIn:60*60*24
}
gettoken = (user) => {
    let token = jwt.sign({...user},secret);
    return token;
}
verifytoken = (token)=>{
    let obj = jwt.verify(token,secret);
    return obj;
}

module.exports = {
    gettoken,verifytoken
}